#ifndef VIDEO_H
#define VIDEO_H

#include <QWidget>
#include <QImage>
#include <QCamera>
#include <QCameraViewfinder>
#include <QCameraImageCapture>



class Video : public QWidget
{
    Q_OBJECT
public:
    explicit Video(QWidget *parent = nullptr);

signals:
    void sendImage(int,QImage);

public slots:
    void captureImage();
    void displayImage(int,QImage);
    void saveImage();
private:
    QCamera *camera;
    QCameraViewfinder *viewfinder;
    QCameraImageCapture *imageCapture;
};

#endif // VIDEO_H
